<template>
  <div></div>
</template>
<script setup>
import { Leafer, Box, Ellipse } from 'leafer-ui';
import '@leafer-in/animate' // 导入动画插件 //
const leafer = new Leafer({
  view: window
})
const box = new Box({
  fill: 'green',
  draggable: true,
  cornerRadius: 30,
  children: [{
    tag: 'Text',
    text: 'Welcome to LeaferJS',
    fill: 'white',
    padding: [10, 20],
    textAlign: 'left',
    verticalAlign: 'top'
  }]
})
leafer.add(box)
</script>